import { createContext } from 'react';
import type { ModalProProps } from './type';

const defaultFunc: any = () => {};

const ModalContext = createContext<ModalProProps>({
	store: { open: false, title: 'modal', data: {} },
	setModal: defaultFunc,
	setUpdateFunc: defaultFunc
});

export default ModalContext;
